export function getStorage (name) {
  if (!window.localStorage) {
    return false
  } else {
    return localStorage.getItem(name)
  }
}

export function setStorage (name, value) {
  if (!window.localStorage) {
    return false
  } else {
    console.log(name + value)
    window.localStorage.setItem(name, value)
  }
}

export function delStorage (name) {
  if (!window.localStorage) {
    return false
  } else {
    window.localStorage.removeItem(name)
  }
}
